You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2020/03/22 17:54:51 UTC

[Bug 64257] New: Need ProxyHTMLIgnoreAttribute directive to skip stripping of custom tag atttributes

https://bz.apache.org/bugzilla/show_bug.cgi?id=64257

            Bug ID: 64257
           Summary: Need ProxyHTMLIgnoreAttribute directive to skip
                    stripping of custom tag atttributes
           Product: Apache httpd-2
           Version: 2.4.6
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_proxy_html
          Assignee: bugs@httpd.apache.org
          Reporter: jdavid1@charter.net
  Target Milestone: ---

I created a reverse proxy on an opengrok application with relative easy using
the mod_proxy_html package. That was until I realized the parser was stripping
out attributes used by the opengrok server to do things like 'show more/less'
content. When I turned trace on, I see things like this 'AH01418: Bogus HTML
attribute data-toggle-state of span dropped' during the page rendering. Having
a directive to tell the SAX parser to ignore the custom tag attributes listed
would work perfectly.
e.g.
ProxyHTMLIgnoreAttribute data-toggle-state data-priority ...

I did a search and couldn't find a satisfactory workaround.
Setting 'ProxyHTMLDocType HTML Legacacy' does horrible things to the page
styling.

As it is, I will have to scrap mod_proxy_html and rewrite the url's as I hit
them.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 64257] Need ProxyHTMLIgnoreAttribute directive to skip stripping of custom tag atttributes

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64257

John David <jd...@charter.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from John David <jd...@charter.net> ---
The data-* attribute is used to store custom data private to the page or
application.
The data-* attribute gives us the ability to embed custom data attributes on
all HTML elements.

It seems that the data-* custom attribute is allowed for all HTML tags. You are
removing them.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org