The HTML parser has always (or for a long time) allowed elements and attributes to have a wide variety of valid characters and names, but the javascript DOM APIs to create the same elements and attributes are more strict and don't match the parser. This change relaxes the validation of the javascript DOM APIs to match the HTML parser. More context here: https://github.com/whatwg/dom/issues/849 I don't anticipate any compat issues from this change because all of the previously allowed element/attribute names are still allowed with the new behavior.
WHATWG has merged the spec changes for this already:
- https://github.com/whatwg/dom/pull/1079
- https://github.com/whatwg/html/pull/7991
I believe it is very likely that webkit and gecko will ship this change after we do, so I believe that the interoperability and compat risks are low.
The validation of element and attribute names is fairly isolated and the new validation logic does not have different complexity than the old logic. The default usage of this API will not make it hard for chrome to maintain good performance.
It will not be hard to developers to use this change immediately, and I don't think we need outreach for it. It is more of a bug fix than a new feature.
https://github.com/whatwg/dom/issues/849#issuecomment-1090076902
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
If an element or attribute name is not allowed, then just like with the old logic an exception will be thrown explaining that the name is not valid. There are no specialized DevTools features for this name validation, and I don't think any DevTools changes are needed for this feature.
https://github.com/web-platform-tests/wpt/pull/38503 https://chromium-review.googlesource.com/c/chromium/src/+/6570951 https://github.com/web-platform-tests/wpt/pull/52982 https://chromium-review.googlesource.com/c/chromium/src/+/6615057
No milestones specified
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
None--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6ea1397c-879f-48f9-b5a8-72839e4f8ee5n%40chromium.org.
LGTM2
/Daniel
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6ea1397c-879f-48f9-b5a8-72839e4f8ee5n%40chromium.org.
--
TAMURA Kent--
Software Engineer, Google
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
LGTM3
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6ea1397c-879f-48f9-b5a8-72839e4f8ee5n%40chromium.org.
--
TAMURA Kent--
Software Engineer, Google
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/86b7f733-3465-422d-b022-ac6779b64c7cn%40chromium.org.