Skip to content

Proof of concept: Automatically determine MUST_USE_PROPERTY/ATTRIBUTE #1512

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

Closed
wants to merge 1 commit into from
Closed

Conversation

syranide
Copy link
Contributor

Hand meet glove #1449 (per node-type list of attributes/properties).
This is a super shitty implementation, but simply to get the discussion going.

Rather than manually determine if something is an attribute or property, this does it automatically. Combined with #1449 this could be done at start-up if preferred (well we could anyway, but then we'd have to keep a minimal set of elements and attributes/properties). Using the same principle we can also determine the type of each property, but it would not work attributes (I think?).

Supported by all browsers? Sure seems so, very quick testing in IE8 revealed no issues.


This naturally feeds into if we should even have these whitelists at all, but it seems like there's a handful of decidedly non-trivial issues/decisions that would have to be resolved/agreed upon. So I intentionally omitted it here to keep it focused, but obviously feel free to discuss it.

2 failed tests, but they are not indicative of a fundamental issue with this patch, simply "changing circumstances" that are coincidentally addressed by my other recent PRs.

@vjeux
Copy link
Contributor

vjeux commented May 11, 2014

That's cool! I really hate having that whitelisted list.

@syranide
Copy link
Contributor Author

@syranide
Copy link
Contributor Author

@vjeux This doesn't explicitly address the whitelist itself though, only the additional type information that accompanies each property/attribute in the list.

While doing away with the whitelist entirely is possible, there are some non-obvious issues/decisions that needs to be addressed.

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@syranide
Copy link
Contributor Author

syranide commented Sep 4, 2014

Proper implementation #2141, closing.

@syranide syranide closed this Sep 4, 2014
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.

3 participants