Mercurial > hg > xemacs-beta
diff lisp/w3/w3-parse.el @ 98:0d2f883870bc r20-1b1
Import from CVS: tag r20-1b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:13:56 +0200 |
parents | 6a378aca36af |
children | 360340f9fd5f |
line wrap: on
line diff
--- a/lisp/w3/w3-parse.el Mon Aug 13 09:12:43 2007 +0200 +++ b/lisp/w3/w3-parse.el Mon Aug 13 09:13:56 2007 +0200 @@ -2136,7 +2136,7 @@ ;; Read the attributes from a start-tag. (if w3-p-d-end-tag-p - (if (looking-at "[ \t\r\n/]*>") + (if (looking-at "[ \t\r\n/]*[<>]") nil ;; This is in here to deal with those idiots who stick ;; attribute/value pairs on end tags. *sigh* @@ -2330,6 +2330,19 @@ (setq tag-attributes (cons (cons 'class (list w3-p-s-btdt)) tag-attributes)))) ) + (if (not (eq w3-p-d-tag-name 'input)) + nil + (setq w3-p-s-btdt (concat ":" + (downcase + (or (cdr-safe + (assq 'type tag-attributes)) + "text")))) + (if (assq 'class tag-attributes) + (setcdr (assq 'class tag-attributes) + (cons w3-p-s-btdt + (cdr (assq 'class tag-attributes)))) + (setq tag-attributes (cons (cons 'class (list w3-p-s-btdt)) + tag-attributes)))) ) ;; Process the end of the tag.