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

Editorial: synchronize with the DOM Standard #891

Merged
merged 1 commit into from Mar 18, 2016
Merged

Editorial: synchronize with the DOM Standard #891

merged 1 commit into from Mar 18, 2016

Conversation

annevk
Copy link
Member

@annevk annevk commented Mar 16, 2016

This makes a couple of editorial changes:

  • Instead of "root element" we now use "root" or "document element"
  • Instead of "home subtree" we simply use "tree"
  • "In a document" is now referenced
  • Usage of replaceChild() has been replaced with concept-node-replace

Fixes: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28039.

@annevk
Copy link
Member Author

annevk commented Mar 16, 2016

This cleanup will be useful when integrating Shadow DOM. Some more might be needed, but this is a good start and fixes a legacy bug.

<p>If the root
element of the resulting <code>Document</code> has any sibling nodes, then throw a
<code>SyntaxError</code> exception and abort these steps.</p>
<p>If the document element of the resulting <code>Document</code> has any sibling nodes, then
Copy link
Member

Choose a reason for hiding this comment

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

xref document element? (Also elsewhere)

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair enough I guess.

@annevk
Copy link
Member Author

annevk commented Mar 17, 2016

Added some further cleanup. Please take another look.

@domenic domenic added the clarification Standard could be clearer label Mar 17, 2016
@zcorpan
Copy link
Member

zcorpan commented Mar 18, 2016

LGTM

This makes a couple of editorial changes:

* Instead of "root element" we now use "root" or "document element"
* Instead of "home subtree" we simply use "tree"
* "In a document" is now referenced
* Usage of replaceChild() has been replaced with concept-node-replace
* Usage of insertBefore() has been replaced with
  concept-node-pre-insert
@annevk annevk merged commit 21c6ec7 into master Mar 18, 2016
@zcorpan zcorpan deleted the domdomdom branch March 18, 2016 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Standard could be clearer
Development

Successfully merging this pull request may close these issues.

None yet

3 participants