[fossil-users] conflict between HTML5 and Fossil

2011-09-15 Thread Stephan Beal
Hi, all,

And now something which has nothing to do with JSON...

i noticed yesterday (via a comment in one of the tickets) that fossil now
sends an HTML5 doctype. That's all fine and good, but the wiki does not
actually play well as-is with HTML5. In v5 several features wiki authors
rely on are deprecated, e.g. the TT tag, align options, and several other
things are now (=v5) officially delegated to CSS. Fossil strips out all but
a small subset of element properties (CSS styles get removed).

We may need to enable at least CSS (but keep the other stripping) in order
to be v5 compliant. We'd also need to change code-side uses of TT and such,
replacing them with styled SPANs.

(Granted, i don't honestly believe that any existing browsers will remove
the TT tag or the A.TARGET attribute, but they are officially deprecated.)

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] conflict between HTML5 and Fossil

2011-09-15 Thread Joshua Paine

On 9/15/2011 8:16 AM, Stephan Beal wrote:

(Granted, i don't honestly believe that any existing browsers will
remove the TT tag or the A.TARGET attribute, but they are officially
deprecated.)


The target attribute for the a and area elements is no longer 
deprecated, as it is useful in Web applications, e.g. in conjunction 
with iframe. http://www.w3.org/TR/html5-diff/


Deprecating 'target' was a mistake of xhtml and html 4--it's back in 
html 5. (In fact, there's official support for the target attribute on 
more elements!) In contrast, tt and other purely presentational tags and 
attributes are not just deprecated but out completely.


--
Joshua Paine
LetterBlock: Web Applications Built With Joy
http://letterblock.com/
301-576-1920
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] conflict between HTML5 and Fossil

2011-09-15 Thread Stephan Beal
On Thu, Sep 15, 2011 at 3:12 PM, Joshua Paine jos...@letterblock.comwrote:

 The target attribute for the a and area elements is no longer deprecated,
 as it is useful in Web applications, e.g. in conjunction with iframe. 
 http://www.w3.org/TR/html5-**diff/ http://www.w3.org/TR/html5-diff/


Doh, that means i lied to everyone at work in my intro to html5
presentation a few weeks ago :/.


 Deprecating 'target' was a mistake of xhtml and html 4--it's back in html
 5. (In fact, there's official support for the target attribute on more


It was a huge mistake. The idea was apparently that scripting could replace
it, but there are different policy/security restrictions with scripts
opening new windows than there are with anchors opening them.

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] conflict between HTML5 and Fossil

2011-09-15 Thread Konstantin Khomoutov
On Thu, 15 Sep 2011 14:16:23 +0200
Stephan Beal sgb...@googlemail.com wrote:

 And now something which has nothing to do with JSON...
 
 i noticed yesterday (via a comment in one of the tickets) that fossil
 now sends an HTML5 doctype. That's all fine and good, but the wiki
 does not actually play well as-is with HTML5. In v5 several features
 wiki authors rely on are deprecated, e.g. the TT tag, align options,
 and several other things are now (=v5) officially delegated to CSS.
 Fossil strips out all but a small subset of element properties (CSS
 styles get removed).
I think the problem is really rooted in the wiki markup which is too
simplistic for any real use beyond one-sentence notes.
I'm not in position to weigh high-profile solutions like
the proposed intergation of a markdown parser (which itself is not
without irritating warts), but at least having something like *this* for
emthis/em and `this` for what-span-attribute-currently-replaces
ttthis/tt would be really nice to have.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users