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

What about detached headings? #27

Open
domenic opened this issue Jun 18, 2014 · 2 comments
Open

What about detached headings? #27

domenic opened this issue Jun 18, 2014 · 2 comments
Labels

Comments

@domenic
Copy link

domenic commented Jun 18, 2014

What is the level of document.createElement("html5-h")? What about if I put one in via the parser, but then remove it later?

@matatk
Copy link
Contributor

matatk commented Jun 18, 2014

So far we've been concentrating on the perspective of someone writing the HTML directly; the next stage being to move on to things like #25 and #26, where an element that was already declared in the HTML is moved.

I'm not actually sure what the answer to your question is yet -- there may well be an error thrown when trying to create it "just like that" -- but I would hope that, if that sort of thing were to be gracefully handled when the element is instantiated, then the solution adopted for #25 and #26 should take care of the rest.

@domenic
Copy link
Author

domenic commented Jun 18, 2014

I think the best answer would be null for document.createElement("html5-h").level, and "" for document.createElement("html5-h").getAttribute("level").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants