Details

    • Type: Wish Wish
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sink API
    • Labels:
      None
    • Number of attachments :
      0

      Description

      For some particular use, would be nice to insert javascript, in the <head> part for example :
      <script type="text/javascript" src="http://www.google.com/jsapi"></script>
      A sink.script(String text) is enough

        Activity

        Hide
        Lukas Theussl added a comment -

        This should be achieved with the unknown sink even, available since Doxia 1.1. The XhtmlSink should understand something like

        Object[] required = new Object[] { new Integer( HtmlMarkup.TAG_TYPE_SIMPLE ) };
        SinkEventAttributeSet attribs = new SinkEventAttributeSet(new String[] {"type", "text/javascript","src", "http://www.google.com/jsapi"});
        sink.unknown( HtmlMarkup.SCRIPT.toString(), required, attribs );
        
        Show
        Lukas Theussl added a comment - This should be achieved with the unknown sink even, available since Doxia 1.1. The XhtmlSink should understand something like Object [] required = new Object [] { new Integer ( HtmlMarkup.TAG_TYPE_SIMPLE ) }; SinkEventAttributeSet attribs = new SinkEventAttributeSet( new String [] { "type" , "text/javascript" , "src" , "http: //www.google.com/jsapi" }); sink.unknown( HtmlMarkup.SCRIPT.toString(), required, attribs );

          People

          • Assignee:
            Lukas Theussl
            Reporter:
            QualiteSys QualiteSys
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: