Thanks for the reply, what I observed is that for non-standard HTML elements, they are stored as
storage format, e.g.
<ac:task-list>, but for the rest like a simple unordered list, it’s stored as standard HTML (e.g.
<ul>) which I guess is compatible with the XHTML-based
The problem I have is when a standard element, for example, an unordered list (
<ul>) is located outside of macro body, they actually have extra classes or attributes applied to them when viewing them on the page:
Where as when an identical element resides inside a macro body and retrieved as macro body using
AP.getMacroBody(), it is simply an
<ul> without any classes or attributes, even when I used the REST endpoint to convert them to
styled_view, they remain without any of the classes or attributes that they would have if they are outside of a macro body (notice the missing
ak-ul class in
<ul>, and the data attributes as well):
Thus the question, is there anyway to make them look the same (not just
<ul> but other elements as well), or at least have the same classes and attributes?