Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#1516 closed defect (wontfix)

removal of several tags in html5

Reported by: guest Owned by: gogo
Priority: normal Milestone: 0.96
Component: Xinha Core Version: trunk
Severity: normal Keywords: html 5
Cc:

Description

HTML 5 is about to be launched. Along with new features to be added several tags will be removed such as the "font" tag. is a new version of xinha (which uses the "font" tag) is being developed?

Change History (4)

comment:1 follow-up: Changed 7 years ago by gogo

  • Resolution set to wontfix
  • Status changed from new to closed

Xinha can only be assumed to produce well-formed XML, there is no specific specification to which the html is compliant.

Browsers do not really provide sufficient support for this.

Also... it could be argued that in the context of a WYSIWYG editor like Xinha, using <font> <b> and <i> etc is the correct thing to do, when a user clicks the BOLD button in the editor, they are speifically saying "I want this to be in a bold typeface", not "I think this is strongly important", same goes for "I want this to be in an italic typeface" versus "I think this should be emphasized".

That said, if you really wanted, you could either strip the font tags server end, or using the appopriate Xinha configuration. If you're using a Gecko based browser you could modify the Gecko module to use styleWithCSS true, I guess this could be configurable, but it creates problems when going between browsers I believe.

comment:2 Changed 7 years ago by guest

  • Resolution wontfix deleted
  • Status changed from closed to reopened

TinyMCE and CKEditor both go with strong/ em instead of deprecated <b>, <i>.

Because those tags are deprecated they might not be around in future web browsers.

Adam J

comment:3 Changed 7 years ago by gogo

  • Resolution set to wontfix
  • Status changed from reopened to closed

Xinha already uses strong and em, see Xinha.prototype.outwardHTML (personally, I'd prefer this was config'd.

As for font, patches are welcome provided they are fully tested and work in al the browsers we support, for editing and re-editing. Otherwise, closing it, because I don't have time nor inclination.

comment:4 in reply to: ↑ 1 Changed 6 years ago by guest

Replying to gogo:

Also... it could be argued that in the context of a WYSIWYG editor like Xinha, using <font> <b> and <i> etc is the correct thing to do, when a user clicks the BOLD button in the editor, they are speifically saying "I want this to be in a bold typeface", not "I think this is strongly important", same goes for "I want this to be in an italic typeface" versus "I think this should be emphasized".

I don't mean to resurrect this bug, just fix this claim (though if this info causes it to be resurrected, I'm certainly not going to complain), since it's a fairly persistent misconception: <b> and <i> weren't deprecated. Of those three, only <font> is. See http://www.w3.org/TR/html4/index/elements.html

Note: See TracTickets for help on using tickets.