A modern, accurate HTML parser and serializer for PHP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.2 KiB

#data
<!DOCTYPE html><html><?test moop>
#errors
(1,23): unexpected-question-mark-instead-of-tag-name
#document
| <!DOCTYPE html>
| <html>
| <?test moop>
| <head>
| <body>
#data
<!DOCTYPE html><html><?xml oops>
#errors
(1,23): unexpected-question-mark-instead-of-tag-name
#document
| <!DOCTYPE html>
| <html>
| <!-- ?xml oops -->
| <head>
| <body>
#data
<!DOCTYPE html><html><?xml-stylesheet blah>
#errors
(1,23): unexpected-question-mark-instead-of-tag-name
#document
| <!DOCTYPE html>
| <html>
| <?xml-stylesheet blah>
| <head>
| <body>
#data
<!DOCTYPE html><html><?xml-stylesheet blah ?>
#errors
(1,23): unexpected-question-mark-instead-of-tag-name
#document
| <!DOCTYPE html>
| <html>
| <?xml-stylesheet blah ?>
| <head>
| <body>
#data
<!DOCTYPE html><html><?test
moop>
#errors
(1,23): unexpected-question-mark-instead-of-tag-name
#document
| <!DOCTYPE html>
| <html>
| <?test moop>
| <head>
| <body>
#data
<!DOCTYPE html><html><?💩 This PI target should be valid, but PHP does not accept it>
#errors
(1,23): unexpected-question-mark-instead-of-tag-name
#document
| <!DOCTYPE html>
| <html>
| <!-- ?💩 This PI target should be valid, but PHP does not accept it -->
| <head>
| <body>