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

Add "why upgrades" document to proposals section #112

Merged
merged 1 commit into from
Jun 12, 2015
Merged

Add "why upgrades" document to proposals section #112

merged 1 commit into from
Jun 12, 2015

Conversation

domenic
Copy link
Collaborator

@domenic domenic commented Jun 12, 2015

This hopes to explain why upgrades are important.

dglazkov added a commit that referenced this pull request Jun 12, 2015
Add "why upgrades" document to proposals section
@dglazkov dglazkov merged commit a644a46 into WICG:gh-pages Jun 12, 2015
@annevk
Copy link
Collaborator

annevk commented Jun 12, 2015

This doesn't address the drawbacks about not being able to do parser extensions (e.g. set in the constructor how the parser should behave for this element, get end tag notifications).

@annevk
Copy link
Collaborator

annevk commented Jun 12, 2015

And also how this basically does not match what any user agent does at the moment and therefore puts us down a particular path for any new features related to constructing elements that might be less than ideal.

@domenic
Copy link
Collaborator Author

domenic commented Jun 12, 2015

@annevk I think parser special-cased elements are additive to upgradeable elements---you can have both. Not in the same element, sure. But I think authors are much more interested in progressively enhanced non-specially-parsed elements than they are in only-usable-after-loading-definitions specially-parsed elements. For the minority who do want the latter, we can definitely add that functionality, if they are willing to give up progressive enhancement.

This does match how user agents work at the moment, if you conceptualize the built-in element definitions being already loaded before parsing happens. I'm not sure what you mean by how it could constrain new features, though.

@dglazkov
Copy link
Contributor

This is starting to get off-topic for this particular discussion, but would love to get a better handle on parser extensibility. Should this even be a design goal? It seems that most element-specific parser strategies are things that we would like to avoid in the future. The requests that I've seen are all "make my element behave like a <template> element", which seems like it should just be solved by sub-classing. It might be good to just say "parser is done" and avoid complicating things.

@domenic
Copy link
Collaborator Author

domenic commented Jun 12, 2015

@dglazkov that is a great discussion to have though. I've forked the thread to #113 for that specifically.

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

Successfully merging this pull request may close these issues.

4 participants