Changeset 855 for trunk


Ignore:
Timestamp:
06/13/07 00:33:31 (12 years ago)
Author:
wymsy
Message:

fix for ticket #1035

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/GetHtml/TransformInnerHTML.js

    r694 r855  
    3939/*03*/  new RegExp().compile(/\/>/g),//strip singlet terminators 
    4040/*04*/  new RegExp().compile(/<(br|hr|img|input|link|meta|param|embed|area)((\s*\S*="[^"]*")*)>/g),//terminate singlet tags 
    41 /*05*/  new RegExp().compile(/(checked|compact|declare|defer|disabled|ismap|multiple|no(href|resize|shade|wrap)|readonly|selected)([\s>])/gi),//expand singlet attributes 
     41/*05*/  new RegExp().compile(/(<\w+\s+(\w*="[^"]*"\s+)*)(checked|compact|declare|defer|disabled|ismap|multiple|no(href|resize|shade|wrap)|readonly|selected)([\s>])/gi),//expand singlet attributes 
    4242/*06*/  new RegExp().compile(/(="[^']*)'([^'"]*")/),//check quote nesting 
    4343/*07*/  new RegExp().compile(/&(?=[^<]*>)/g),//expand query ampersands 
     
    7474                replace(c[3], '>').//strip singlet terminators 
    7575                replace(c[9], '$1>').//trim whitespace 
    76                 replace(c[5], '$1="$1"$3').//expand singlet attributes 
     76                replace(c[5], '$1$3="$3"$4').//expand singlet attributes 
    7777                replace(c[4], '<$1$2 />').//terminate singlet tags 
    7878                replace(c[6], '$1$2').//check quote nesting 
Note: See TracChangeset for help on using the changeset viewer.