Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore title="" for <style> and <link> in shadow trees #1675

Merged
merged 1 commit into from
Aug 16, 2016

Conversation

domenic
Copy link
Member

@domenic domenic commented Aug 15, 2016

@domenic domenic added the topic: shadow Relates to shadow trees (as defined in DOM) label Aug 15, 2016
@@ -14251,7 +14254,8 @@ c-end = "-->"</pre>

<dd>

<p>The <code data-x="attr-style-title">title</code> attribute of <var>element</var>.</p>
<p>The <code data-x="attr-style-title">title</code> attribute of <var>element</var>, if
<var>element</var> is <span>in a document tree</span>, or the empty string otherwise.</p>
Copy link
Member

@hayatoito hayatoito Aug 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per WICG/webcomponents#535 (comment),
shouldn't it be null, instead of empty string?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what I thought, but it turns out CSSOM prefers strings and then translates the empty string to null: https://drafts.csswg.org/cssom/#dom-stylesheet-title

Maybe we should include a note explaining this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. I see. I did not know that.

LGTM as is.

@zcorpan zcorpan merged commit 449dee2 into master Aug 16, 2016
@zcorpan zcorpan deleted the shadow-stylesheet-no-title branch August 16, 2016 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: link topic: shadow Relates to shadow trees (as defined in DOM)
Development

Successfully merging this pull request may close these issues.

3 participants