[wp-trac] [WordPress Trac] #16790: Functional spec for wpautop

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 7 22:06:30 UTC 2011

#16790: Functional spec for wpautop
 Reporter:  mrclay       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Unit Tests   |    Version:
 Severity:  minor        |   Keywords:
 I've put together an algorithm-based [http://www.mrclay.org/wpautop-
 functional-specification/ functional spec] that I hope could be useful in
 maintaining wpautop. Also might be handy is this combination of
 /wpautop-fails.in.html wpautop failure cases].

 The algorithm is based on work I've started on a DOMDocument-based
 implementation (a project I contribute to needs an MIT-licensed version),
 and although it's incomplete and slow, it does a bang-up job so far.

 DOMDocument may just be too slow or strict in its parsing to allow the
 variety of markup that wpautop needs to accept, but it's ace at the level
 of surgical precision needed to do this right.

Ticket URL: <http://core.trac.wordpress.org/ticket/16790>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list