jsoup icon indicating copy to clipboard operation
jsoup copied to clipboard

lower cased html attributes

Open aseychell opened this issue 16 years ago • 6 comments

As I already stated in a previous post, we are using JSTL tags (java custom tags) and we require the attributes to be camel cased to match some methods in our java code. Is it possible to give an option to leave the attributes as they are and not modify them by making them lower case?

e.g. <abc:ourtag returnUrl="http://abc.com" /> does not change to <abc:ourtag returnurl="http://abc.com" />

Thanks!

aseychell avatar Aug 05 '10 10:08 aseychell

+1, not just for attributes even element names should have case preserving option.

ssuravarapu avatar Jan 05 '11 18:01 ssuravarapu

+1 For preserve tag and attributes config option .

moorick avatar Apr 05 '13 06:04 moorick

+1 For preserve tag and attributes config option .

edgar-philipp avatar May 24 '13 09:05 edgar-philipp

See also: https://github.com/jhy/jsoup/issues/272, https://github.com/jhy/jsoup/issues/328

edgar-philipp avatar May 24 '13 10:05 edgar-philipp

+1 For preserve tag and attributes config option.

FranciscoCanas avatar Jun 18 '14 15:06 FranciscoCanas

You can control case normalization with ParseSettings now - https://github.com/jhy/jsoup/commit/e38b916ba1ebd3f5c00a6b6b8e77a4cdfea2800f

jhy avatar Aug 10 '16 23:08 jhy