So, I had a wakeup call the other day when looking for a solution to a
problem of mine when I bumped into this:
http://www.cs.tut.fi/~jkorpela/html/own-dtd.html Creating your own DTD for
HTML validation .

So I'm wondering, why this isn't more widespread.

Now I can write code like this: <h1 editable="true">This is a topic</h1> and
still make validation (not for the standard but for my edited version of
one).

So I made a few changes in a edit in place script I'm working on, and I
gotta say it makes the source much more readable.

so instead of
<h1 id="topic-5-news" class="editableLine">This is the topic of news
nr5</h1>

I get
<h1 db="news" field="topic" unique="5" editable="line">This is the topic of
news nr5</h1>

Or like I'm using it:
<div db="news" unique="5">
   <h1 field="topic" editable="true">This is the topic of news nr5</h1>
   <div field="content" editable="true">This is a editable paragraph</div>
</div>

and with jQuery I'm able to use the selectors $('h1[editable=true]') to
generate a <input> field and $('div[editable=true]') to generate a WYSIWYG
editor.

I get the current table and unique id from checking the parent div's
parameters, and the field from the current element.

Ok so this is getting a little long, but why oh why, havn't I thought of
this before? And whats the catch?!
I'ts late and I really gotta get some sleep, but I would love to hear some
input in this from fellow JQuery users, we do want our code to be easy to
read, don't we? :P
-- 
View this message in context: 
http://www.nabble.com/Giving-up-regular-DOCTYPES-tf3095989.html#a8595317
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to