3 ms·
The billion dollar tag should be <resources> A way to include external resources in html (images, audio, video, etc) in order to make a single file, which can
by TweedHeads 17y ago
The billion dollar tag should be <resources>
A way to include external resources in html (images, audio, video, etc) in order to make a single file, which can be downloaded as a single file (same as MHTML, MAFF, etc but without the hacks)
I hope it gets considered and included in HTML6
Implementation:
- place it after the html closing tag to unclutter the file:
- use it from any html tag <img src="url(#myimg)"/>
</html>
<resources>
<resource id="myimg" content-type="image/jpeg" encoding="base64">...</resource>
<resource id="x0" type="stylesheet" content-type="text/css">...</resource>
<resource id="x1" type="script">...</resource>
<resource id="x2" type="font">...</resource>
<resource id="x3" type="audio">...</resource>
<resource id="x4" type="video">...</resource>
<resource id="x5" type="object">...</resource>
<resource id="x6" type="embed">...</resource>
</resources>
- TweedHeads 17y agoA more interesting tag would be <definitions> where you can define your own tags for internal use: : <menu /> <businesscard /> </html> <definitions> <define tag="menu">my menu here</define> <define tag="businesscard">my business card here</define> </definitions> Most browsers nowadays allow any kind of tags, ignoring them, so all you have to do is set their style to hidden for unsupported browsers. Now the semantic web takes a new meaning on its own.
- gnaritas 17y agoThat's a horrible idea and totally destroys the scalability of the web because it destroys effective caching. That every resource has it's own url and is downloaded separately is not a mistake that needs corrected, it's what makes the web scale and it was done that way on purpose.
- TweedHeads 17y agoI am talking about "Save As..." one html file. Take a look at your browser's File menu, and save this page as one single html file. Open that file in any editor and take a look inside it. Do the same for every browser out there, and then, only then, you'll understand my point.
- gnaritas 17y agoAh, you weren't very clear then, that's not at all what it looks like you're saying.
- kragen 17y agoThat's equivalent to data: URLs if you only refer to the object once in the HTML.
- TweedHeads 17y agoMore or less, with the convenience of reuse, and a better location at the end of the document for better readability.
- thristian 17y agoWhat makes that better than MHTML, which is basically a standard multipart/related MIME document as used by bazillions of email messages a day?
- TweedHeads 17y agoSimplicity. It can be parsed and traversed like a DOM object. It can be manipulated with javascript. Unlike MHTML...