[wp-trac] [WordPress Trac] #11939: Make Script Elements HTML4 and XHTML compilant

WordPress Trac wp-trac at lists.automattic.com
Mon May 17 14:31:10 UTC 2010


#11939: Make Script Elements HTML4 and XHTML compilant
-----------------------------+----------------------------------------------
 Reporter:  hakre            |        Owner:                
     Type:  feature request  |       Status:  closed        
 Priority:  low              |    Milestone:  Future Release
Component:  Validation       |      Version:  3.0           
 Severity:  normal           |   Resolution:  wontfix       
 Keywords:                   |  
-----------------------------+----------------------------------------------

Comment(by hakre):

 Replying to [comment:12 azaozz]:
 > But unless there is a current browser that is having a problem parsing
 XHTML 1.0 transitional, don't think we need to change this.

 Looks like I couldn't make my point here again. Please take a little time
 and read the following paragraphs. At the End I'll ask a question with the
 aim to point into the domain this should be about, because there are
 Problems with todays browsers. HTML5 infact is there to make the current
 situation better. But that as sidenote only.

 So let's taking it to the bare metal with a quiz at the end:

 ----

 Let's open the dashboard in current trunk which is in the admin. So what
 is this actually for a type of document? To find out, let's ask the
 browser. I use firefox 3.latest over here (stable). I open the
 Pageproperties and get his information:

 {{{
 Name: Content-Type
 Content: text/html; charset=UTF-8
 }}}

 So we have a HTML document here by the Mimetype (Meta). The same goes for
 the corresponding Server Resonse Headers:

 {{{
 Name: Content-Type
 Content: text/html; charset=UTF-8
 }}}

 To summarize the information so far: The WordPress Admin Interface is
 served as a ''text/html'' document. The charset is ''UTF-8''.

 What does that mean? The meaning of the Internet Media Type ''text/html''
 is defined in [http://www.w3.org/TR/html401/ HTML4] and
 [http://www.ietf.org/rfc/rfc2854.txt RFC2854] respectively. So this can be
 read in those documents.

 That for the Document's Internet Media Type of which the Browser takes
 into account as HTTP User Agent. But there is more.

 Now for the HTML Doctype the Dashboard has, those are the first two lines
 of the HTTP Resonse Body from the Dashboard:

 {{{
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml"  dir="ltr" lang="en-US">
 }}}

 Like you already wrote, it is ''XHTML 1.0 Transitional''.
 [http://www.w3.org/TR/xhtml1/ XHTML] is ''"A Reformulation of HTML 4 in
 XML 1.0"''.

 ----

 We've come to an end and found out about with which sepcifications the
 WordPress Admin gets served. So far so clear.

 And now for the Quiz:

 Taking Internet Media Type and Doctype into account, what do you think as
 what will the Dashboard Document be parsed by your HTTP Client? As HTML as
 for the Mimetype or as XML as for the Doctype?

 {{{
 [ ] A - XML  (~ 1998)
 [ ] B - HTML (~ 1990)
 [ ] C - SGML (~ 1986)
 [ ] D - GML  (~ 1975)
 [ ] E - GC   (~ 1969)
 }}}
 (You can, but must not, select multiple answers)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11939#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list