tinymce/tinymce — pull request #104 by abhishekdev (2011-12-22 09:41:48+00:00)
Title: Fixed js error when opening dropdown context menus for editor id/name containing dot characters (Bug 4863)

Fixed js error when opening dropdown context menus for editor id/name containing dot characters (Bug 4863)

View original issue description at: http://www.tinymce.com/develop/bugtracker_view.php?id=4863

As per (x)HTML specifications ( http://www.w3.org/TR/REC-html40/types.html#h-6.2 ) id and name attributes can contain dots apart from other valid characters. However the code line in concern previously used the Sizzle engine where the dot character is used to denote class names and this caused the line to fail when the ID itself
had dots. Since the line was already expecting a ID (notice # selector), it makes more sense to directly use the documeny.getElementByID or a similar method which would find DOM elements directly using ID. Not going the CSS selector route to avoid additional "." dot escaping logic.