[Htmlparser-user] Missing Meta's treatments: maybe useful
Brought to you by:
derrickoswald
From: R. <ced...@fr...> - 2002-06-28 11:26:18
|
Hello, I've just read the wc3 recommendations for HTML and I've found that META seems have others fields like: lang, dir or scheme http://www.w3.org/TR/html4/struct/global.html#h-7.4.4 <!ELEMENT META - O EMPTY -- generic metainformation --> <!ATTLIST META %i18n; -- lang, dir, for use with content -- http-equiv NAME #IMPLIED -- HTTP response header name -- name NAME #IMPLIED -- metainformation name -- content CDATA #REQUIRED -- associated information -- scheme CDATA #IMPLIED -- select form of content -- > The best solution for patching is to modify HTMLMetaTag: ------------ public HTMLMetaTag(int tagBegin, int tagEnd, String tagContents, String httpEquiv, String metaTagName, String metaTagContents,String tagLine) => public HTMLMetaTag(int tagBegin, int tagEnd, String tagContents, Hashtable table,String tagLine) HTMLMetaTagScanner: ------------------- HTMLMetaTag metaTag = new HTMLMetaTag(tag.elementBegin(),tag.elementEnd(),tag.getText(),httpEquiv, metaTagName,metaTagContents,currLine); => HTMLMetaTag metaTag = new HTMLMetaTag(tag.elementBegin(),tag.elementEnd(),tag.getText(),table,currLine); So after you are ready to get and set the fields in HTMLMetaTag. Somik, do you think it will be a good solution ? If this solution is convenient, I can't patch these files and mail it to you :) Regards, Cedric. |