File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -774,7 +774,7 @@ var FpJsFormValidator = new function () {
774774 * @return {HTMLElement|null }
775775 */
776776 this . findParentForm = function ( child ) {
777- if ( 'form' == child . tagName . toLowerCase ( ) ) {
777+ if ( child . tagName && 'form' == child . tagName . toLowerCase ( ) ) {
778778 return child ;
779779 } else if ( child . parentNode ) {
780780 return this . findParentForm ( child . parentNode ) ;
Original file line number Diff line number Diff line change @@ -774,7 +774,7 @@ var FpJsFormValidator = new function () {
774774 * @return {HTMLElement|null }
775775 */
776776 this . findParentForm = function ( child ) {
777- if ( 'form' == child . tagName . toLowerCase ( ) ) {
777+ if ( child . tagName && 'form' == child . tagName . toLowerCase ( ) ) {
778778 return child ;
779779 } else if ( child . parentNode ) {
780780 return this . findParentForm ( child . parentNode ) ;
You can’t perform that action at this time.
0 commit comments