Comments (2)
Are you sure the first example is valid HTML?
http://www.w3schools.com/tags/tag_doctype.asp
http://dev.w3.org/html5/spec/single-page.html#the-doctype
"The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web
browser about what version of HTML the page is written in."
Do you want Ganon to try to recover the html node from the closing tag?
Original comment by [email protected]
on 7 Dec 2012 at 5:53
from ganon.
Yes, my mistake. It's not an HTML tag per se.
However, it can still be valid. On these validators:
http://validator.w3.org/nu/
http://validator.w3.org/check
The following validates:
<!DOCTYPE html>
<head>
<title></title>
</head>
<body>
</body>
</html>
So perhaps it would be nice for Ganon to parse "<!DOCTYPE html>" as an opening
HTML tag nd make it the root node?
Original comment by [email protected]
on 8 Dec 2012 at 1:52
from ganon.
Related Issues (20)
- toString_attributes, Invalid argument supplied for foreach()
- $tag_ns is uninitialized HOT 1
- Patch for /wiki/AccesElements.wiki
- cURL and ganon HOT 1
- Get DOM from text/string? HOT 2
- multiple classes selector issue HOT 2
- getting different with file_get_dom()
- Ganon and codeigniter
- :nth-child index starts from 0
- Comma separated selector fail
- How to passing tr td in table
- Message: file_get_contents(someURL): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
- Ganon adds ");" at the end of URL and makes it invalid
- Defect interpreting a quotes enclosed php instruction HOT 2
- Multiple classes not supported in selector?
- Class selector treats dashes as delimiter HOT 1
- Creating default object from empty value in ganon.php on line 1022
- Call to a member function match() on a non-object in ganon.php on line 1551 HOT 1
- only get 2 first element of selector
- Strange MS conditionals break parsing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ganon.