You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can resolve these by reaching into the Tag Processor when we enter foreign content.
Figure out how to rewrite attribute names and namespaces
Support SVG and MathML
The challenging part is determine if we're in foreign content. These tags are more or less incidental to that, and so there's no need to explicitly support them.
Resolve how to represent plain text vs. trusted HTML vs. user-sourced HTML in templating and in set_inner_html().
Figure out retroactive changes to the document:
Figure out how to handle implicitly-created tags, such as ones creating during active formatting reconstruction, or when encountering an unexpected closing P tag.
Figure out how to communicate that the document changed before the current position, as when active format reconstruction, adoption, and fostering occur.
Current thinking is that we can allow developers to indicate if they are concerned about retroactive changes to the document, and if so, which elements or situations they care about.
For example, someone may not care if the BODY element gains new attributes, or if an empty P element was created, but they may want to know if text was moved from inside a TABLE to before it. This could be the case for code that renders the text of an HTML page; since fostering can re-order text content, it would want to ensure it knows the proper ordering.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
HTML issues | Refactors | ↑ Broader Roadmap | ← Plans for 6.5 | → Plans for 6.7
Tasks
Bug fixes and quality
Continue adding support for more HTML tags
TEMPLATE
TABLE
Add functionality to the HTML API
WP_HTML::tag()
for safely creating HTML. wordpress-develop#5884set_inner_html()
Design work and framework improvements
html_entity_decode()
is unaware of the ambiguous ampersand and its function signature doesn't leave room to account for it.set_inner_html()
.P
tag.BODY
element gains new attributes, or if an emptyP
element was created, but they may want to know if text was moved from inside a TABLE to before it. This could be the case for code that renders the text of an HTML page; since fostering can re-order text content, it would want to ensure it knows the proper ordering.Follow-up work to shepherd HTML API usage in Core
Beta Was this translation helpful? Give feedback.
All reactions