mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
9.21k stars 22.49k forks source link

Tags within the title element, whose their content are converted to strings rather than ignored. #36702

Open liuxuelian opened 1 week ago

liuxuelian commented 1 week ago

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement/text

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

I open this native page in Chrome, Firefox browser, their representations are the same.

image

What did you expect to see?

"tags within the element and their content are converted to strings."

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details * Folder: `en-us/web/api/htmltitleelement/text` * MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement/text * GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/api/htmltitleelement/text/index.md * Last commit: https://github.com/mdn/content/commit/7cc15fff0f1284ece460597b9717ca20350a1fa9 * Document last modified: 2023-12-26T10:28:50.000Z
Josh-Cena commented 1 week ago

Both this and the <title> page need fixing. <title> does not accept non-text children, so in fact anything that even looks like HTML tags are in fact just pure text content.

liuxuelian commented 1 week ago

And HTML elements reference page also needs to be fixed.