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

Document Dom\HTMLDocument methods #4314

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nielsdos
Copy link
Member

No description provided.

@nielsdos
Copy link
Member Author

nielsdos commented Dec 15, 2024

reference/dom/dom/htmldocument/createfromstring.xml:89: trailing whitespace.

This is intentional
EDIT: fixed by making a small change to the sample

Comment on lines 1758 to 1760
The <link linkend="libxml.constants">LIBXML_NOEMPTYTAG</link>
and <link linkend="libxml.constants">LIBXML_NOXMLDECL</link> options are supported.
Prior to PHP 8.3.0, only the <link linkend="libxml.constants">LIBXML_NOEMPTYTAG</link>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just use the <constant> tags here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I made this mistake because this was copied+adapted


<!ENTITY dom.parameter.compliant.encoding '<simpara xmlns="http://docbook.org/ns/docbook">
The encoding that the document was created in.
If not provided, it will automatically detect the used encoding.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure we should use "detect" here.
Maybe more something along the lines

It will attempt to determine the most likely encoding that is used

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

&dom.errors.compliant.common;
<listitem>
<simpara>
Throws an <exceptionname>Exception</exceptionname> if
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it generic or is it a DOMException?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A normal Exception, DOM doesn't define this exception so it's not a DOMException.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants