portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pau...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/util HTMLRewriter.java
Date Sat, 09 Feb 2002 12:40:05 GMT
paulsp      02/02/09 04:40:05

  Modified:    src/java/org/apache/jetspeed/util HTMLRewriter.java
  Log:
  Update the HREF attribute on <Link> tag.
  
  Revision  Changes    Path
  1.10      +9 -0      jakarta-jetspeed/src/java/org/apache/jetspeed/util/HTMLRewriter.java
  
  Index: HTMLRewriter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/HTMLRewriter.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- HTMLRewriter.java	5 Feb 2002 05:43:46 -0000	1.9
  +++ HTMLRewriter.java	9 Feb 2002 12:40:05 -0000	1.10
  @@ -114,6 +114,9 @@
    * <INPUT>
    *   o SRC attribute - URL merged with base URL (See Note 1)
    * 
  + * <LINK>
  + *   o HREF attribute - URL merged with base URL (See Note 1)
  + *
    * <OBJECT>
    *   o Optionally included
    *   o CODEBASE attribute - Set to the current path if it does
  @@ -544,6 +547,12 @@
                   // ---- CHECKING <IMG SRC & <INPUT SRC
                   addConvertedAttribute( HTML.Attribute.SRC,
                                          attrs );
  +            } else if (tag == HTML.Tag.LINK) {
  +                if (attrs.getAttribute(HTML.Attribute.HREF) != null) {
  +                    // ---- CHECKING <LINK HREF
  +                    addConvertedAttribute( HTML.Attribute.HREF,
  +                    attrs );
  +                }
               } else if ( tag == HTML.Tag.APPLET ) {
                   // ---- CHECKING <APPLET CODEBASE=
                   if (attrs.getAttribute(HTML.Attribute.CODEBASE) == null) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message