Skip to content

Commit

Permalink
Add support for custom elements
Browse files Browse the repository at this point in the history
This is the first part of upstreaming custom elements into the DOM and
HTML Standards, instead of having them be in a separate spec that is
essentially a bunch of monkeypatches. The second part will be
upstreaming the remaining portions into HTML.

See https://rawgit.com/w3c/webcomponents/15a203c8393aef0df7223ab1d43406aa11a7e71e/spec/custom/index.html
for the source material, in particular the sections labeled "DOM+". Some
minor bugs were fixed while upstreaming, mainly in the "remove"
algorithm for elements. The rest of the changes were editorial.
  • Loading branch information
domenic committed Apr 7, 2016
1 parent cd643f8 commit 7f63535
Show file tree
Hide file tree
Showing 2 changed files with 581 additions and 105 deletions.
Loading

7 comments on commit 7f63535

@plehegar
Copy link

Choose a reason for hiding this comment

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

Hi @domenic , do you plan to acknowledge somewhere where this addition was derived from?

@domenic
Copy link
Member Author

@domenic domenic commented on 7f63535 Apr 7, 2016

Choose a reason for hiding this comment

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

For sure! Did you see line 9712, and also the commit message?

@plehegar
Copy link

Choose a reason for hiding this comment

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

Missed it indeed. Thank you.

@ArkadiuszMichalski
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm missing options argument directly in def:
https://dom.spec.whatwg.org/#dom-document-createelement
https://dom.spec.whatwg.org/#dom-document-createelementns
DOM spec always pass such optional argument in def and other WHATWG spec too (only HTML is inconsistent here).

@domenic
Copy link
Member Author

@domenic domenic commented on 7f63535 Apr 8, 2016

Choose a reason for hiding this comment

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

Thanks, can you open an issue instead of commenting on the commit?

@annevk
Copy link
Member

@annevk annevk commented on 7f63535 Apr 8, 2016

Choose a reason for hiding this comment

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

I'll fix that, but yeah, it'd be great if you could file issues @ArkadiuszMichalski or comment on the PR while it's in progress. Whenever you comment on a commit it puts pressure on those maintaining the repository. They either have to take action straight away in some fashion or ignore your comment (or hope to remember it, but that seems less likely).

@annevk
Copy link
Member

@annevk annevk commented on 7f63535 Apr 8, 2016

Choose a reason for hiding this comment

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

2168da2

Thanks.

Please sign in to comment.