This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26394 - [imports]: the |import| attribute returns null if the UA does not support imports?
Summary: [imports]: the |import| attribute returns null if the UA does not support imp...
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 20683
  Show dependency treegraph
 
Reported: 2014-07-20 18:17 UTC by Florent Fayolle
Modified: 2014-07-22 22:37 UTC (History)
4 users (show)

See Also:


Attachments

Description Florent Fayolle 2014-07-20 18:17:49 UTC
Quoting https://w3c.github.io/webcomponents/spec/imports/ :
"On getting, the import attribute must return null, if:
[...]
* the user agent does not support imports"

Shouldn't the user-agent just return |undefined|? (as they actually do)

Florent
Comment 1 Boris Zbarsky 2014-07-20 18:28:58 UTC
Indeed.  If this spec is not supported, the property should just not be present.
Comment 2 Morrita Hajime 2014-07-22 22:37:29 UTC
Makes sense. It sounds like we don't have to mentions about that.
https://github.com/w3c/webcomponents/commit/5116d7cce28542e2476f0800d1a1e6ef3c38de28