wordpress produces invalid blog markup

Bug #125467 reported by Parker Phinney
4
Affects Status Importance Assigned to Milestone
Web Team projects
Fix Released
Medium
Unassigned

Bug Description

if you center something with wordpress's post GUI, it uses the align= attribute, which is invalid. it might create invalid markup for some other positioning options in the post GUI as well.

solution: dive into wordpress's php and patch it to instead use class="centered" and use css to center items of this class (and do the same with other evil positioning invalidnesses). alternately just have php stick the css right on the item, namely: style="margin-right: auto; margin-left: auto; position: relative;"
alternate solution: never use wordpress's posting GUI. maybe use a system of bbcode instead? perhaps stick a little html/css reference in the "writing post" page?

Tags: standards
Revision history for this message
Nelson Pavlosky (nelson-freeculture) wrote :

We could also file bugs upstream on Wordpress's Trac at http://trac.wordpress.org/ .... or even help them fix the bugs! FC Labs project ;-)

Revision history for this message
Asheesh Laroia (paulproteus) wrote :

Parker, does this cause problems in XHTML 1.1 Transitional now that we've switched to it?

Can you find me an example of WordPress doing this so I can see for myself?

Revision history for this message
Gavin Baker (naufragio-deactivatedaccount) wrote :

Web standards are important... let's fix this

Changed in web:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Parker Phinney (gameguy43) wrote : Re: [Bug 125467] Re: wordpress produces invalid blog markup

i made a test post, and wordpress centers things by saying <p
align="center">, which is valid in xhtml transitional (wasn't in strict).
however, there are a few posts still that use <center>, probably either due
to pasting from another website or being originally posted with an older
version of wordpress. We just need to go into these posts and fix up their
markup. use the validator page and tick "show source" to locate the problem
areas:
http://validator.w3.org/check?uri=http%3A%2F%2Ffreeculture.org%2Fblog%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&verbose=1

On 7/15/07, Gavin Baker <email address hidden> wrote:
>
> Web standards are important... let's fix this
>
> ** Tags added: standards
>
> ** Changed in: web (upstream)
> Importance: Undecided => Medium
> Status: New => Incomplete
>
> --
> wordpress produces invalid blog markup
> https://bugs.launchpad.net/bugs/125467
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
http://www.madebyparker.com

Revision history for this message
Parker Phinney (gameguy43) wrote :

it would still be nice to have wordpress use xhtml strict valid markup, but since we're transitional now it doesn't matter.

Changed in web:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.