Link to home
Start Free TrialLog in
Avatar of ShanghaiD
ShanghaiDFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Mysterious artifact "7" in html body tag innerHTML

Recently I noticed a mysterious "7" appearing in the top left corner of my homepage: http://heart2heartshanghai.net/index.cfm but I cannot find a "7" in my CFML code.
In trying to track this down (to remove it), I created a totally empty new page in my site's root: http://heart2heartshanghai.net/index2.cfm -- but the "7" still mysteriously appears!

Firebug shows the HTML of the "empty" page as:
<html>
<head></head>
<body>7 </body>
</html>

Open in new window

and when I inspect the DOM with Firebug I see several references to "7\n" (which I think is the mysterious artefact I want to remove) which I have highlighted in bold:

baseURI
      "http://heart2heartshanghai.net/index2.cfm"
      
childElementCount
      2
      
childNodes
      [head, body]
      
0
      head
      
accessKey
      ""
      
accessKeyLabel
      "^"
      
contextMenu
      null
      
dataset
      DOMStringMap {}
      
isContentEditable
      false
      
onmouseenter
      null
      
onmouseleave
      null
      
onmozfullscreenerror
      null
      
parentElement
      html
      
accessKey
      ""
      
accessKeyLabel
      "^"
      
contextMenu
      null
      
dataset
      DOMStringMap {}
      
isContentEditable
      false
      
onmouseenter
      null
      
onmouseleave
      null
      
onmozfullscreenerror
      null
      
parentElement
      null
      
click
      click()
      
contains
      contains()
      
insertAdjacentHTML
      insertAdjacentHTML()
      
mozRequestFullScreen
      mozRequestFullScreen()
      
attributes
      []
      
length
      0
      
getNamedItem
      getNamedItem()
      
getNamedItemNS
      getNamedItemNS()
      
item
      item()
      
removeNamedItem
      removeNamedItem()
      
removeNamedItemNS
      removeNamedItemNS()
      
setNamedItem
      setNamedItem()
      
setNamedItemNS
      setNamedItemNS()
      
__proto__
      [xpconnect wrapped native prototype] { item=item(), getNamedItem=getNamedItem(), setNamedItem=setNamedItem(), more...}
      
baseURI
      "http://heart2heartshanghai.net/index2.cfm"
      
childElementCount
      2
      
childNodes
      [head, body]
      
0
      head
      
1
      body
      
accessKey
      ""
      
accessKeyLabel
      "^"
      
contextMenu
      null
      
dataset
      DOMStringMap {}
      
isContentEditable
      false
      
onmouseenter
      null
      
onmouseleave
      null
      
onmozfullscreenerror
      null
      
parentElement
      html
      
click
      click()
      
contains
      contains()
      
insertAdjacentHTML
      insertAdjacentHTML()
      
mozRequestFullScreen
      mozRequestFullScreen()
      
aLink
      ""
      
attributes
      []
      
background
      ""
      
baseURI
      "http://heart2heartshanghai.net/index2.cfm"
      
bgColor
      ""
      
childElementCount
      0
      
childNodes
      [<TextNode textContent="7\n">]
      
0
      <TextNode textContent="7\n">
     
parentElement
      body
      
wholeText
      "7\n"

      
contains
      contains()
      
attributes
      null
      
baseURI
      "http://heart2heartshanghai.net/index2.cfm"
      
childNodes
      []
      
constructor
      Text {}
      
data
      "7\n"

      
firstChild
      null
      
lastChild
      null
      
length
      2
      
localName
      null
      
namespaceURI
      null
      
nextSibling
      null
      
nodeName
      "#text"
      
nodeType
      3
      
nodeValue
      "7\n"


Can anyone tell me what is going on -- how the "7" got there, and how do I remove it?
ASKER CERTIFIED SOLUTION
Avatar of James Williams
James Williams
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You might want to take a look at your Application.cfm or Application.cfc (esp the onRequestStart() method)
Avatar of ShanghaiD

ASKER

Excellent!  Thank you!