Answered
DOM meta tags
Hi there!
I'm writing an extension for DW8 that retrieves the contents of a meta tag from the current XHTML document:
<meta name="SKU_Condition" content="some_name" />
So I've got the following from the Extending DW help and the API ref:
var dom = dw.getDocumentDOM(); //get the dom of the current document
var skuCondMeta = dom.getElementsByTagName(???);
I see that the getElements function returns a list of child tags for a given tag type like DIV, IMG, etc.
Where do I go from here?
-Scott
I'm writing an extension for DW8 that retrieves the contents of a meta tag from the current XHTML document:
<meta name="SKU_Condition" content="some_name" />
So I've got the following from the Extending DW help and the API ref:
var dom = dw.getDocumentDOM(); //get the dom of the current document
var skuCondMeta = dom.getElementsByTagName(???);
I see that the getElements function returns a list of child tags for a given tag type like DIV, IMG, etc.
Where do I go from here?
-Scott
