GetTagData should return the tag attributes in an ordered struct
Description
Environment
None
Activity
Show:
Zac Spitzer 22 October 2020 at 07:41
docs now has the correct order
Zac Spitzer 11 September 2020 at 12:03
thanks! works for me :)
Michael Offner 11 September 2020 at 11:49
please give it a check
Michael Offner 11 September 2020 at 11:48
sorry i had to reject your PR, we did already the same in meantime, but including all struct and also getFunctionData
Michael Offner 11 September 2020 at 11:47
Fixed
Details
Details
Assignee
Reporter
Zac Spitzer
Zac SpitzerPriority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
None
Affects versions
Created 4 September 2020 at 17:06
Updated 12 April 2021 at 11:42
Resolved 11 September 2020 at 13:12
The tag attributes are returned in a normal struct, rather than an ordered struct from getTagData()
https://docs.lucee.org/reference/functions/gettagdata.html
this causes a problem for docs, as the curated order from the tag definitions is lost
https://trycf.com/gist/183c93595f0c81255a071413700e7e32/lucee5?theme=monokai
As a result, the attribute order in docs is somewhat random
https://docs.lucee.org/reference/tags/application.html
https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/functions/other/GetTagData.java#L141
https://github.com/lucee/lucee-docs/blob/master/api/reference/TagReferenceReader.cfc#L59
If this could be also fixed in 5.3.7 before it goes stable, it would be great