Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing error in p:load for html media type #280

Closed
xml-project opened this issue Dec 11, 2019 · 3 comments · Fixed by #316
Closed

Missing error in p:load for html media type #280

xml-project opened this issue Dec 11, 2019 · 3 comments · Fixed by #316
Assignees

Comments

@xml-project
Copy link
Contributor

@xml-project xml-project commented Dec 11, 2019

The current spec does not contain an error to be raised, if the processor is not able to load an HTML document. I think we should add this.

@ndw

This comment has been minimized.

Copy link
Collaborator

@ndw ndw commented Dec 11, 2019

There is no such thing as a not-well-formed HTML5 document. I don't think any error is possible; but I don't object to adding an explicit error code. I suppose XD0060 is also possible.

@xml-project

This comment has been minimized.

Copy link
Contributor Author

@xml-project xml-project commented Dec 11, 2019

There is no such thing as a not-well-formed HTML5 document.

I am not sure I understand what this means. ;-))

Anyway: p:load is supposed to produce an XDM instance. Is it garanteed, that any HTML5 document can be represented by an XDM instance?

@ndw

This comment has been minimized.

Copy link
Collaborator

@ndw ndw commented Dec 11, 2019

Yes. Any random sequence of characters produces a well-formed XDM tree if you parse it with an HTML5 parser. But for consistency, I'm happy with an explicit error code in case there is something that does raise an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.