tracker issue : CF-3715657

select a category, or use search below
(searches all categories and all time range)
Title:

<cfhtmltopdfitem type="pagebreak"> should not require a "closing" tag

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/NotABug

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 03/02/2014

Components: Language

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: PublicBeta /

Priority/Frequency: Minor / Some users will encounter

Locale/System: English / Platforms All

Vote Count: 1

This code errors:

<cfhtmltopdf destination="#expandPath('./pdfs/test.pdf')#">
	here
	<cfhtmltopdfitem type="pagebreak" >
	there
</cfhtmltopdf>

With:
Context validation error for tag CFHTMLTOPDFITEM.

The start tag must have a matching end tag. An explicit end tag can be provided by adding &lt;/CFHTMLTOPDFITEM&gt;. If the body of the tag is empty you can use the shortcut &lt;CFHTMLTOPDFITEM .../&gt;.

No. That's not how CFML tags work. I know that <cfhtmltopdfitem type="header/footer"> can take body, so those need a closing tag; but type="pagebreak" CANNOT take a body, so should not need a closing tag.

Note that <cfinvoke>, <cfprocessingdirective>, <cfchartseries> etc demonstrate the precedent where ColdFusion is clever enough to determine when a tag does not need a closing tag if there is legitimately no tag body.

-- 
Adam

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3715657

External Customer Info:
External Company:  
External Customer Name: Adam Cameron.
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

+1 - the closing tag should not be required here
Vote by External U.
13127 | May 13, 2014 04:12:53 AM GMT