Lines Matching refs:attrs

280     start: function( tag, attrs, unary ) {
408 for ( var i = 0; i < attrs.length; i++ ) {
410 // if(!confirm(tag + ' ' + attrs[i].name + '="' + attrs[i].escaped + '"')) exit;
412 if(attrs[i].name =='colspan') {
413 this.current_row[this.col].colspan = attrs[i].value;
415 if(attrs[i].name =='class') {
416 if((matches=attrs[i].value.match(/(left|center|right)/))) {
420 if(attrs[i].name == 'rowspan') {
421 this.current_row[this.col].rowspan= attrs[i].value
424 if(attrs[i].escaped == 'u' && tag == 'em' ) {
431 if(attrs[i].name == 'class' && attrs[i].value == 'footnotes') {
437 … if(tag == 'dl' && attrs[i].name == 'class' && attrs[i].value == 'file') {
442 if(tag == 'span' && attrs[i].name == 'class') {
443 if(attrs[i].value == 'np_break') return;
446 if(tag == 'span' && attrs[i].name == 'class') {
447 if(attrs[i].value =='curid') {
451 if(attrs[i].value == 'multi_p_open') {
456 if(attrs[i].value == 'multi_p_close') {
460 if(attrs[i].value.match(geshi_classes)) {
469 if(attrs[i].name == 'style') {
473 matches = attrs[i].value.match(/font-family:\s*([\w\-\s,]+);?/);
478 //matches = attrs[i].value.match(/font-size:\s*(\d+(\w+|%));?/);
479 matches = attrs[i].value.match(/font-size:\s*(.*)/);
484 matches = attrs[i].value.match(/font-weight:\s*(\w+);?/);
488 matches = attrs[i].value.match(/.*?color:\s*(.*)/);
500 matches = attrs[i].value.match(/background:\s*(\w+)/);
514 if(attrs[i].name == 'align') {
515 this.td_align =attrs[i].escaped;
518 else if(attrs[i].name == 'class') {
519 matches = attrs[i].value.match(/\s*(\w+)align/);
524 else if(attrs[i].name == 'colspan') {
526 this.td_colspan =attrs[i].escaped;
528 else if(attrs[i].name == 'rowspan') {
529 this.td_rowspan =attrs[i].escaped-1;
538 // if(!confirm(attrs[i].name + '="' + attrs[i].escaped + '"')) exit;
539 if(attrs[i].name == 'title') {
540 this.link_title = attrs[i].escaped;
542 interwiki_title = attrs[i].escaped;
546 else if(attrs[i].name == 'class') {
547 if(attrs[i].value.match(/fn_top/)) {
550 else if(attrs[i].value.match(/fn_bot/)) {
553 else if(attrs[i].value.match(/mf_(png|gif|jpg|jpeg)/i)) {
556 else if(attrs[i].value.match(/interwiki/)) {
557 attrs[i].value = attrs[i].value.replace(/\./g,'_');
558 this.link_class = attrs[i].value;
562 this.link_class= attrs[i].escaped;
566 else if(attrs[i].name == 'id') {
567 this.id = attrs[i].value;
569 else if(attrs[i].name == 'type') {
570 type = attrs[i].value;
573 else if(attrs[i].name == 'href' && !this.code_type) {
574 var http = attrs[i].escaped.match(/https*:\/\//) ? true : false;
575 if(http) save_url = attrs[i].escaped;
576 if(attrs[i].escaped.match(/\/lib\/exe\/detail.php/)) {
579 else if(attrs[i].escaped.match(/exe\/fetch.php/)) {
584 var link_find = attrs[i].escaped.match(/media=(.*)/);
589 … var media_type = attrs[i].escaped.match(/fetch\.php.*?media=.*?\.(png|gif|jpg|jpeg)$/i);
592 if(attrs[i].escaped.match(/^https*:/)) {
593 this.attr = attrs[i].escaped;
596 if(attrs[i].escaped.match(/^ftp:/)) {
597 this.attr = attrs[i].escaped;
600 else if(attrs[i].escaped.match(/do=export_code/)) {
603 else if(attrs[i].escaped.match(/^nntp:/)) {
604 this.attr = attrs[i].escaped;
607 else if(attrs[i].escaped.match(/^mailto:/)) {
608 this.attr = attrs[i].escaped.replace(/mailto:/,"");
611 else if(attrs[i].escaped.match(/m-files/)) {
612 this.attr = attrs[i].escaped;
613 this.mfile = attrs[i].escaped;
616 else if(attrs[i].escaped.match(/^file:/)) { //samba share
617 var url= attrs[i].value.replace(/file:[\/]+/,"");
624 … else if(http && !media_type && (matches = attrs[i].escaped.match(/fetch\.php(.*)/)) ) {
636 matches = attrs[i].escaped.match(regex);
652 matches = attrs[i].escaped.match(/doku.php\?id=(.*)/);
655 if(!attrs[i].escaped.match(rx)) {
662 matches = attrs[i].escaped.match(/doku.php\/(.*)/);
685 for(var n = i+1; n < attrs.length; n++) {
686 if(attrs[n].value.match(/other_mime/))
696 matches = attrs[i].value.match(/\\\\/); // Windows share
698 this.attr = attrs[i].escaped;
705 if(attrs[i].value.match(/http:/)) {
750 if(attrs[i].value.match(/^#/) && this.link_class.match(/wikilink/)) {
751 this.attr = attrs[i].value;
774 if(!qs_set && attrs[i].name == 'href') {
775 if(!this.attr.match(/\?.*?=/) && !attrs[i].value.match(/doku.php/)) {
776 var qs = attrs[i].value.match(/(\?.*)$/);
819 if(attrs[i].name == 'class') {
820 matches = attrs[i].value.split(/\s+/);
833 if(attrs[i].name == 'class') {
835 var elems = attrs[i].escaped.split(/\s+/);
837 this.attr = attrs[i].value;
841 this.attr = attrs[i].escaped;
856 if(attrs[i].name == 'alt') {
857 alt=attrs[i].value;
859 if(attrs[i].name == 'type') {
860 this.image_link_type = attrs[i].value;
863 if(attrs[i].name == 'src') {
864 …// alert(attrs[i].name + ' = ' + attrs[i].value + ', fnencode=' + oDokuWiki_FCKEditorInstance.dw…
868 if(matches = attrs[i].escaped.match(/fetch\.php.*?(media=.*)/)) {
871 if(matches = attrs[i].escaped.match(/(media.*)/)) {
878 else if(attrs[i].escaped.match(/https?:\/\//)){
879 src = attrs[i].escaped;
883 … else if(matches = attrs[i].escaped.match(/\/_media\/(.*)/)) {
890 else if(matches = attrs[i].escaped.match(/\/lib\/exe\/fetch.php\/(.*)/)) {
898 matches = attrs[i].escaped.match(/^.*?\/userfiles\/image\/(.*)/);
901 … matches = attrs[i].escaped.match(regex);
908 matches = attrs[i].escaped.match(regex);
915 …src = decodeURIComponent ? decodeURIComponent(attrs[i].escaped) : unescape(attrs[i].escaped); …
936 else if (attrs[i].name == 'width' && !style) {
937 width=attrs[i].value;
940 else if (attrs[i].name == 'height' && !style) {
941 height=attrs[i].value;
943 else if(attrs[i].name == 'style') {
944 var match = attrs[i].escaped.match(/width:\s*(\d+)/);
947 var match = attrs[i].escaped.match(/height:\s*(\d+)/);
951 else if(attrs[i].name == 'align' || attrs[i].name == 'class') {
952 if(attrs[i].escaped.match(/(center|middle)/)) {
955 else if(attrs[i].escaped.match(/right/)) {
958 else if(attrs[i].escaped.match(/left/)) {