Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-03-24 15:49:36

riftdesign
Xinha Pro
From: South Dakota, USA
Registered: 2005-03-22
Posts: 55
Website

XHTML compliancy and depreciated HTML

There are a few things that I would like to suggest for XHTML and HTML compliancy and removal of depreciated tags.

1. /htmlarea.js create var isXHTML (boolean variable) for setting XHTML compliancy and latest HTML specs
    * isXHTML = true;
2. /htmlarea.js commands for using span tags with styles
    * font (style="font-family: arial,helvetica,sans-serif;")
    * forecolor (style="color: #ccc;")
    * hilitecolor (style="background-color: #ccc;")
    * strike and underline could remain as is, although style="text-decoration: underline;" and style="text-decoration: line-through;" work great too
3. /popups/select_color.html HTML is pretty poor
    * attributes not quoted
    * style for curser doesn't work for Firefox

I added a ticket for this here:
http://xinha.gogo.co.nz/cgi-bin/trac.cgi/ticket/95

I have already uploaded a patch for /popups/select_color.html

This is for discussion on this issue.


rift design studio
[url]http://www.riftdesign.com[/url]

Offline

#2 2005-03-24 20:40:25

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: XHTML compliancy and depreciated HTML

Also, in ImageManager attributes vspace, hspace, border, and align are set which are not xhtml strict, and could also be replaced by css. I think similar applies to tables.

Offline

#3 2005-03-26 00:25:44

riftdesign
Xinha Pro
From: South Dakota, USA
Registered: 2005-03-22
Posts: 55
Website

Re: XHTML compliancy and depreciated HTML

As far as I can tell with making things like text color (forecolor) more HTML 4.0 complient, we would have to move away from using queryCommandValue("forecolor") to use a function to manual wrap the selected text in a <span style="...">...</span> method, which probably makes it more difficult to remove it. Any thoughts here?

FILE: htmlarea.js
LINE: 2191


rift design studio
[url]http://www.riftdesign.com[/url]

Offline

#4 2005-04-02 04:35:18

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: XHTML compliancy and depreciated HTML

Yes, to a large extent we are limited by what the browser will do.  Mozilla can be set to "useCSS" but I don't think that IE can be.


James Sleeman

Offline

Board footer

Powered by FluxBB