Comments (4)
It's cool, but it's not backwards compatible at all. Tags don't allow special characters so browsers would have to do a ton of work to get this to work correctly. In the meantime your code wouldn't fall back either while browsers were upgraded. There'd be no way to select this with CSS and CSS would also have to add support. It's neat, but take a lot of work.
from html6.
Nothing of HTML6 is back compatibile. It's only a question of importing new DOM parser, everything else will work the same old way. If you don't like it because of difficulty of importing, I can tell you it's not difficult :)
But when I think about it, the class deffinitions are ugly. But that id syntax could be only a shortand for id attribute - the element will parse as if it had id="..." attr. Not much work to implement, huh?
from html6.
Yes :)
Simple example:
<foo id="test" class="test"></foo>
<html:foo id="test" class="test"></foo>
<foo id="test" class="test">
With JS or CSS you can interact with those elements fine. Notice how GitHub event colors them correctly. Browser still renders the text inside those elements fine and, basically, these work just like any other HTML tag.
<b#bold1.mark.foo foo="bar">quz</b>
Not will all code highlighters fail (editors, web ones like this, etc), but browsers wont know what to do with it, Have you tried opening something like this in Chrome?
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<b test="test">hkj</b>
<a#bold1.mark.foo test="test">quz</b>
<script>
console.log(document.querySelector('[test]')); // Only returns 1
</script>
</body>
</html>
You would need to write a shim to all of the DOM JS APIs because, to JS, that element doesn't even exist. You'd have to get the body innerHTML and parse it manually. Of course it could be done, but you would have to write a parser before you could use this whereas HTML6 now CSS and JS works fine and writing a shim just means converting a few tags to other tags, but you get all the other stuff free.
from html6.
Ok, let's close this discussion.
from html6.
Related Issues (20)
- Creating links with attribute
- A more orthogonal HTML HOT 9
- Missing source element
- Why html:button element?
- HTML-6 looks ugly. Uglier than HTML-5 HOT 15
- Tags should be closed in html6 HOT 2
- Why? HOT 1
- No CSS pseudo class selector support HOT 2
- Web Components HOT 3
- Standardize on the default namespace of 'html' and use it in all your examples HOT 3
- Current CSS spec does not account for this tag selector syntax HOT 1
- Attribute Quotes should be required and we should either pick Double Quotes or Single as a standard HOT 5
- Microformats and html6 semantic again
- use role="a", role="text" to display a link, input:text HOT 2
- It should be some another ways to improve the web. HOT 1
- Lol, worse syntax I've ever seen. HOT 4
- Lol, the author here is such a whiny little kid. HOT 1
- Html6 HOT 1
- Idea HOT 2
- Fix HTML6
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 html6.