Ticket Change Details
Not logged in
Overview

Artifact ID: 97656465e9f719caa44167ea6ed6e6bffab20bbf
Ticket: 675aaa3458199c8832c6879b43325ffb2fd62e75
fossil says valid html element is invalid
User & Date: renez 2010-09-24 21:51:04
Changes

  1. Appended to comment:
    
    
    <hr /><i>renez added on 2010-09-24 21:51:04:</i><br />
    looking further at the routine it will invalidate this to
    
      *  &lt;img src="img.png" alt="d'art noir" title="/> black art" />
      *  &lt; hr />
    
    This will do a bit better but will still not catch all
    <verbatim>
    like <hr//> will be valid
    
    static int markupLength(const char *z){
      int n = 1;
      int quote;
      int c;
      if( z[n]=='/' ){ n++; }
      while(isspace(z[n])) n++;
      if( !isalpha(z[n]) ) return 0;
      n++;
      while(isalnum(z[n])) n++;
      while( (c = z[n]) && c!='>'){
        if( c=='"' || c=='\'' ){
          n++;
          for(quote=c; (c=z[n]) && c!=quote; n++) ; //look for the same closing quote
          if(!c) return 0;
        }
        n++;
      }
      return c ? n+1 : c ;
    }
    </verbatim>
    
  2. resolution changed to: "Open"