[wp-trac] Re: [WordPress Trac] #3841: Wordpress 2.1.1 - Image Upload bug

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 22 14:27:42 GMT 2007


#3841: Wordpress 2.1.1 - Image Upload bug
----------------------------+-----------------------------------------------
 Reporter:  dannyfoo        |        Owner:  anonymous
     Type:  defect          |       Status:  reopened 
 Priority:  normal          |    Milestone:           
Component:  Administration  |      Version:  2.1.1    
 Severity:  trivial         |   Resolution:           
 Keywords:                  |  
----------------------------+-----------------------------------------------
Changes (by majelbstoat):

  * priority:  high => normal
  * severity:  critical => trivial

Comment:

 [Okie, so they are 'valid'. But what's semantically correct or proper
 based on WC3 guidelines?]

 What's semantically correct is what's valid, no?

 [In addition, you expect everyone to now use ' instead of the standard ".
 In honesty, it's like
 Wordpress is trying to change the HTML standards by doing this.]

 Slightly overdramatic don't you think?  I was going to just close this
 again, but I did some checking first.

 HTML 4 allows single or double quotes:

 http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2

 XHTML is a bit vague, but would also seem to allow both, considering XHTML
 is HTML reformatted in XML:

 http://www.w3.org/TR/REC-xml/#sec-common-syn

 "Literal data is any quoted string not containing the quotation mark used
 as a delimiter for that string." - indicating that you can use either.

 However, consider the fact that this particular attribute is an alt - I
 could see lots of people wanting to use an apostrophe there, which could
 conceivably cause minor problems. ie:

 {{{
 <a href='http://mysite.com/wp-content/uploads/2006/11/scooter.jpg'
 title='Jamie's Scooter'><img src='http://mysite.com/wp-
 content/uploads/2006/11/scooter.jpg' alt='Jamie's Scooter' /></a>
 }}}

 No longer valid with who knows what results.  Either way, it's a minor
 fix, so it might be worth doing...

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3841#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list