Lines Matching refs:attrs

364         start: function(tag, attrs, unary) {
497 for (var i = 0; i < attrs.length; i++) {
499 // if(!confirm(tag + ' ' + attrs[i].name + '="' + attrs[i].escaped + '"')) exit;
501 if (attrs[i].name == 'colspan') {
502 this.current_row[this.col].colspan = attrs[i].value;
504 if (attrs[i].name == 'class') {
505 if ((matches = attrs[i].value.match(/(left|center|right)/))) {
509 if (attrs[i].name == 'rowspan') {
510 this.current_row[this.col].rowspan = attrs[i].value
513 if (attrs[i].escaped == 'u' && tag == 'em') {
520 if (attrs[i].name == 'class' && attrs[i].value == 'footnotes') {
526 if (tag == 'dl' && attrs[i].name == 'class' && attrs[i].value == 'file') {
531 if (tag == 'span' && attrs[i].name == 'class') {
532 if (attrs[i].value == 'np_break') return;
535 if (tag == 'span' && attrs[i].name == 'class') {
536 if (attrs[i].value == 'curid') {
540 if (attrs[i].value == 'multi_p_open') {
545 if (attrs[i].value == 'multi_p_close') {
549 if (attrs[i].value.match(geshi_classes)) {
558 if (attrs[i].name == 'style') {
562 matches = attrs[i].value.match(/font-family:\s*([\w\-\s,]+);?/);
567 //matches = attrs[i].value.match(/font-size:\s*(\d+(\w+|%));?/);
568 matches = attrs[i].value.match(/font-size:\s*(.*)/);
573 matches = attrs[i].value.match(/font-weight:\s*(\w+);?/);
577 matches = attrs[i].value.match(/.*?color:\s*(.*)/);
588 matches = attrs[i].value.match(/background:\s*(\w+)/);
602 if (attrs[i].name == 'align') {
603 this.td_align = attrs[i].escaped;
605 } else if (attrs[i].name == 'class') {
606 matches = attrs[i].value.match(/\s*(\w+)align/);
610 } else if (attrs[i].name == 'colspan') {
612 this.td_colspan = attrs[i].escaped;
613 } else if (attrs[i].name == 'rowspan') {
614 this.td_rowspan = attrs[i].escaped - 1;
623 … // if(!confirm(attrs[i].name + '="' + attrs[i].escaped + '"')) exit;
624 if (attrs[i].name == 'title') {
625 this.link_title = attrs[i].escaped;
627 interwiki_title = attrs[i].escaped;
629 } else if (attrs[i].name == 'class') {
630 if (attrs[i].value.match(/fn_top/)) {
632 } else if (attrs[i].value.match(/fn_bot/)) {
634 } else if (attrs[i].value.match(/mf_(png|gif|jpg|jpeg)/i)) {
636 } else if (attrs[i].value.match(/interwiki/)) {
637 attrs[i].value = attrs[i].value.replace(/\./g, '_');
638 this.link_class = attrs[i].value;
642 this.link_class = attrs[i].escaped;
644 } else if (attrs[i].name == 'id') {
645 this.id = attrs[i].value;
646 } else if (attrs[i].name == 'type') {
647 type = attrs[i].value;
648 } else if (attrs[i].name == 'href' && !this.code_type) {
649 var http = attrs[i].escaped.match(/https*:\/\//) ? true : false;
650 if (http) save_url = attrs[i].escaped;
651 if (attrs[i].escaped.match(/\/lib\/exe\/detail.php/)) {
653 } else if (attrs[i].escaped.match(/exe\/fetch.php/)) {
658 var link_find = attrs[i].escaped.match(/media=(.*)/);
663 … var media_type = attrs[i].escaped.match(/fetch\.php.*?media=.*?\.(png|gif|jpg|jpeg)$/i);
666 if (attrs[i].escaped.match(/^https*:/)) {
667 this.attr = attrs[i].escaped;
670 if (attrs[i].escaped.match(/^ftp:/)) {
671 this.attr = attrs[i].escaped;
673 } else if (attrs[i].escaped.match(/do=export_code/)) {
675 } else if (attrs[i].escaped.match(/^nntp:/)) {
676 this.attr = attrs[i].escaped;
678 } else if (attrs[i].escaped.match(/^mailto:/)) {
679 this.attr = attrs[i].escaped.replace(/mailto:/, "");
681 } else if (attrs[i].escaped.match(/m-files/)) {
682 this.attr = attrs[i].escaped;
683 this.mfile = attrs[i].escaped;
685 } else if (attrs[i].escaped.match(/^file:/)) { //samba share
686 var url = attrs[i].value.replace(/file:[\/]+/, "");
693 … else if (http && !media_type && (matches = attrs[i].escaped.match(/fetch\.php(.*)/))) {
704 matches = attrs[i].escaped.match(regex);
718 matches = attrs[i].escaped.match(/doku.php\?id=(.*)/);
721 if (!attrs[i].escaped.match(rx)) {
728 matches = attrs[i].escaped.match(/doku.php\/(.*)/);
749 for (var n = i + 1; n < attrs.length; n++) {
750 if (attrs[n].value.match(/other_mime/))
759 matches = attrs[i].value.match(/\\\\/); // Windows share
761 this.attr = attrs[i].escaped;
768 if (attrs[i].value.match(/http:/)) {
810 if (attrs[i].value.match(/^#/) && this.link_class.match(/wikilink/)) {
811 this.attr = attrs[i].value;
833 if (!qs_set && attrs[i].name == 'href') {
834 … if (!this.attr.match(/\?.*?=/) && !attrs[i].value.match(/doku.php/)) {
835 var qs = attrs[i].value.match(/(\?.*)$/);
875 if (attrs[i].name == 'class') {
876 matches = attrs[i].value.split(/\s+/);
889 if (attrs[i].name == 'class') {
891 var elems = attrs[i].escaped.split(/\s+/);
893 this.attr = attrs[i].value;
896 this.attr = attrs[i].escaped;
909 if (attrs[i].name == 'alt') {
910 alt = attrs[i].value;
912 if (attrs[i].name == 'type') {
913 this.image_link_type = attrs[i].value;
916 if (attrs[i].name == 'src') {
917 …// alert(attrs[i].name + ' = ' + attrs[i].value + ', fnencode=' + oDokuWiki_FCKEditorInstance.dw…
921 if (matches = attrs[i].escaped.match(/fetch\.php.*?(media=.*)/)) {
924 if (matches = attrs[i].escaped.match(/(media.*)/)) {
930 } else if (attrs[i].escaped.match(/https?:\/\//)) {
931 src = attrs[i].escaped;
935 else if (matches = attrs[i].escaped.match(/\/_media\/(.*)/)) {
942 … else if (matches = attrs[i].escaped.match(/\/lib\/exe\/fetch.php\/(.*)/)) {
948 matches = attrs[i].escaped.match(/^.*?\/userfiles\/image\/(.*)/);
951 matches = attrs[i].escaped.match(regex);
958 matches = attrs[i].escaped.match(regex);
964 … src = decodeURIComponent ? decodeURIComponent(attrs[i].escaped) : unescape(attrs[i].escaped);
984 else if (attrs[i].name == 'width' && !style) {
985 width = attrs[i].value;
987 } else if (attrs[i].name == 'height' && !style) {
988 height = attrs[i].value;
989 } else if (attrs[i].name == 'style') {
990 var match = attrs[i].escaped.match(/width:\s*(\d+)/);
993 var match = attrs[i].escaped.match(/height:\s*(\d+)/);
996 } else if (attrs[i].name == 'align' || attrs[i].name == 'class') {
997 if (attrs[i].escaped.match(/(center|middle)/)) {
999 } else if (attrs[i].escaped.match(/right/)) {
1001 } else if (attrs[i].escaped.match(/left/)) {