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
Browser (I mean the last chrome) will pause the parsing at <script> due with debugger instruction. Look at the DOM in current state:
That is, the parser has not yet finished analyzing the contents of the template node, but instead of template we already have a shadow-root node. This way we can never get template.content equal to null.
So .content getter of a template never can return null, please fix the spec or show me a counterexample if I'm wrong.
The text was updated successfully, but these errors were encountered:
What is the issue with the HTML Standard?
The spec has 2 contradictory places.
This one:
![](https://private-user-images.githubusercontent.com/34900769/328711388-c384e3c6-ed73-4235-a45b-21332d318d17.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxMTQyNTIsIm5iZiI6MTcxOTExMzk1MiwicGF0aCI6Ii8zNDkwMDc2OS8zMjg3MTEzODgtYzM4NGUzYzYtZWQ3My00MjM1LWE0NWItMjEzMzJkMzE4ZDE3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDAzMzkxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZjNDc3MDY3YWFiNTg5OThhMmMyZTI5MjJjMjMwOTVmZmU3ZTk0MTc1OWFmMWY4NTBiMjc4YWIwYjM1YjkxNGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.TgcSGJm4MRXhWlulTOmbjwx6KsVY8q6wkQiGfq4VmNY)
![](https://private-user-images.githubusercontent.com/34900769/328710839-18300e98-3665-4592-8c51-e9ab4da53c4c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxMTQyNTIsIm5iZiI6MTcxOTExMzk1MiwicGF0aCI6Ii8zNDkwMDc2OS8zMjg3MTA4MzktMTgzMDBlOTgtMzY2NS00NTkyLThjNTEtZTlhYjRkYTUzYzRjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDAzMzkxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFiOGYyOTBlNDRiNjZhN2Y5ZjJmMzg0MTI4ZWEzNDMzMDViMmNhOTFiM2IzM2U1ODk4ODE5YmVmOGY0MjExYTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.qP10s5sCVFxfDZAB_CsODZW8oo-NMWh5g6gMqGzhZwE)
and the second one:
If you point on the stage of HTML Parser, so there impossible to get template element for extracting
null
value.For example, I have the next code:
Browser (I mean the last chrome) will pause the parsing at
![](https://private-user-images.githubusercontent.com/34900769/328712554-35a9cb02-4a01-481e-a758-ac60e39c830c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxMTQyNTIsIm5iZiI6MTcxOTExMzk1MiwicGF0aCI6Ii8zNDkwMDc2OS8zMjg3MTI1NTQtMzVhOWNiMDItNGEwMS00ODFlLWE3NTgtYWM2MGUzOWM4MzBjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDAzMzkxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY0ZTI5ZWRjYTc4N2VmM2FhNzE2ODAxMDNmODNhNzZhZDhjZTRlM2FjMWFmYmRjZjBkMzQ3Y2ZmMWM3MDEyOGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LJj7oPTH6BiU5RcOvblcKXL2Ht6k5-sirckW_lg1WRc)
<script>
due withdebugger
instruction. Look at the DOM in current state:That is, the parser has not yet finished analyzing the contents of the template node, but instead of template we already have a shadow-root node. This way we can never get
template.content
equal tonull
.So
.content
getter of a template never can returnnull
, please fix the spec or show me a counterexample if I'm wrong.The text was updated successfully, but these errors were encountered: