What is the issue with the HTML Standard?
From the spec:
The content getter steps are to return template's template contents, if the template contents is not a ShadowRoot node; otherwise null.
Implementing this in Ladybird has no apparent effect on WPT test results, which raises a few questions to me:
- How would one produce a template element with a ShadowRoot as the template contents?
- Is it actually possible to do so?
- The IDL defines it as
readonly attribute DocumentFragment content; - this suggests it is not nullable and should always return a value, which conflicts with this algorithm.